package com.lyh.nacosconfig9001;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.GetMapping;

@SpringBootApplication
@Configuration
@RefreshScope
@EnableScheduling//开启定时任务
public class NacosConfig9001Application {

    public static void main(String[] args) {
        SpringApplication.run(NacosConfig9001Application.class, args);
    }


}
